﻿<%@ Page Title="" Language="C#" MasterPageFile="~/common/Admin.master" AutoEventWireup="true" CodeFile="TransactionControl.aspx.cs" Inherits="product_card_admin_TransactionControl" %>

<asp:Content ID="Content1" ContentPlaceHolderID="html_css" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="html_js" Runat="Server">
    <style type="text/css">

        .style1
        {
            width: 100%;
        }
        .style2
        {
            text-align: left;
        }
    </style>
    </asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="content" Runat="Server">
    <p>
        <br />
        <br />
        <br />
        <br />
        &nbsp;
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
            AutoGenerateColumns="False" BackColor="#DEBA84" 
            BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
            CellSpacing="2" DataKeyNames="id" DataSourceID="SqlDataSource1" 
            AllowSorting="True" style="margin-right: 0px">
            <Columns>
                <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
                <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" 
                    ReadOnly="True" SortExpression="id" />
                <asp:BoundField DataField="custID" HeaderText="custID" 
                    SortExpression="custID" />
                <asp:BoundField DataField="cardNo" HeaderText="cardNo" 
                    SortExpression="cardNo" />
                <asp:BoundField DataField="comName" HeaderText="comName" 
                    SortExpression="comName" />
                <asp:BoundField DataField="product" HeaderText="product" 
                    SortExpression="product" />
                <asp:BoundField DataField="quantity" HeaderText="quantity" 
                    SortExpression="quantity" />
                <asp:BoundField DataField="cost" HeaderText="cost" SortExpression="cost" />
                <asp:BoundField DataField="amountSpent" HeaderText="amountSpent" 
                    SortExpression="amountSpent" />
                <asp:BoundField DataField="limit" HeaderText="limit" SortExpression="limit" />
            </Columns>
            <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
            <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
            <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
            <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
            <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#FFF1D4" />
            <SortedAscendingHeaderStyle BackColor="#B95C30" />
            <SortedDescendingCellStyle BackColor="#F1E5CE" />
            <SortedDescendingHeaderStyle BackColor="#93451F" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            SelectCommand="SELECT [id], [custID], [cardNo], [comName], [product], [quantity], [cost], [amountSpent], [limit] FROM [POSPurchase]"
             DeleteCommand = "DELETE FROM [ApplicationDebit] WHERE [id] = @id"
            UpdateCommand = "UPDATE [POSPurchase] SET 
            [cardNo] = @cardNo, [comName] = @comName , [product] = @product, [quantity] = @quantity, [cost] = @cost, [amountSpent] = @amountSpent , [limit] = @limit
            WHERE [custID] = @custID">
            <UpdateParameters>
            <asp:Parameter Name = "cardNo" Type = String />
           <asp:Parameter Name = "comName" Type = String />
          <asp:Parameter Name = "product" Type = String />
              <asp:Parameter Name = "quantity" Type = String />
              <asp:Parameter Name = "cost" Type = String />
          <asp:Parameter Name = "amountSpent" Type = String />
              <asp:Parameter Name = "limit" Type = String />
            <asp:Parameter Name = "custID" />
            
            </UpdateParameters>
   
        </asp:SqlDataSource>
        <br />
        <br />
        <table class="style1">
            <tr>
                <td class="style2">
                    &nbsp;</td>
                <td>
                    <asp:TextBox ID="TextBox2" runat="server" Visible="False">powersaverbanknyp@gmail.com.</asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    &nbsp;</td>
                <td>
                    <asp:TextBox ID="TextBox1" runat="server" Visible="False">s9518299b</asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label3" runat="server" Text="To :"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label4" runat="server" Text="Subject :"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    Message :</td>
                <td>
                    <asp:TextBox ID="TextBox5" runat="server" Height="159px" TextMode="MultiLine" 
                        Width="188px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Send" />
                </td>
            </tr>
        </table>
           
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />

        <br />
        <br />
        <br />
        <br />
        <br />
    </p>
</asp:Content>

